home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / database / hl / hl-1.000 / hl-1 / TkInterface / TkCardRecord.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-21  |  2.6 KB  |  71 lines

  1. /*
  2.  * ------------------------------------------------------------------
  3.  * Home Libarian 1.0B by Deepwoods Software
  4.  * ------------------------------------------------------------------
  5.  * TkCardRecord.h - Tcl/Tk interface for the CardRecord class (defs)
  6.  * Created by Robert Heller on Mon Apr 17 14:01:39 1995
  7.  * ------------------------------------------------------------------
  8.  * Modification History: 
  9.  * ------------------------------------------------------------------
  10.  * Contents:
  11.  * ------------------------------------------------------------------
  12.  *  
  13.  *     Home Librarian Database -- a program for maintaining a database
  14.  *                                for a home library
  15.  *     Copyright (C) 1991-1995  Robert Heller D/B/A Deepwoods Software
  16.  *             51 Locke Hill Road
  17.  *             Wendell, MA 01379-9728
  18.  * 
  19.  *     This program is free software; you can redistribute it and/or modify
  20.  *     it under the terms of the GNU General Public License as published by
  21.  *     the Free Software Foundation; either version 2 of the License, or
  22.  *     (at your option) any later version.
  23.  * 
  24.  *     This program is distributed in the hope that it will be useful,
  25.  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27.  *     GNU General Public License for more details.
  28.  * 
  29.  *     You should have received a copy of the GNU General Public License
  30.  *     along with this program; if not, write to the Free Software
  31.  *     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  32.  * 
  33.  *  
  34.  */
  35. #ifndef _TKCARDRECORD_H_
  36. #define _TKCARDRECORD_H_
  37.  
  38. #include <String.h>
  39.  
  40. #include <tcl.h>
  41. #include <tclExtend.h>
  42.  
  43. #include <iostream.h>
  44. #include <strstream.h>
  45. #include <CardRecord.h>
  46. #include <vBTree.h>
  47. #include <ctype.h>
  48.  
  49. class TkCardRecord {
  50. private:
  51.     String Author,Title,Publisher,City,Description;
  52. public:
  53.     CardRecord *CardRec;
  54.     TkCardRecord(Record* record) {CardRec = new CardRecord(record);}
  55.     TkCardRecord(CoreItem* coreitem) {CardRec = new CardRecord(coreitem);}
  56.     TkCardRecord(Card* card) {CardRec = new CardRecord(card);}
  57.     TkCardRecord(CardRecord& cardrecord) {CardRec = new CardRecord(cardrecord);}
  58.     ~TkCardRecord() {if (CardRec != NULL) delete CardRec;}
  59.     int TclFunction(Tcl_Interp *interp,int argc, char *argv[]);
  60.     static void_pt Handles;
  61. };
  62.  
  63. int createTkCardRecord(Tcl_Interp *interp,Record* record);
  64. int createTkCardRecord(Tcl_Interp *interp,CoreItem* coreitem);
  65. int createTkCardRecord(Tcl_Interp *interp,Card* card);
  66. int createTkCardRecord(Tcl_Interp *interp,CardRecord& cardrecord);
  67. TkCardRecord* FindCardByHandle(Tcl_Interp *interp,char* handle);
  68.  
  69. #endif // _TKCARDRECORD_H_
  70.  
  71.